using System.Collections.Generic;
using System.ComponentModel;
using System.Xml.Serialization;

namespace SMSManager.Data
{
	[TypeConverter(typeof (UserCollectionTypeConverter))]
	public class UserCollection
	{
		public UserCollection()
		{
			Value = new Dictionary<string, User>();
			UserKeys = new List<string>();
			UserValues = new List<User>();
		}

		/// <summary>
		/// Keys for saving the Users
		/// </summary>
		[XmlArray]
		public List<string> UserKeys { get; set; }

		/// <summary>
		/// Values for saving the Users
		/// </summary>
		[XmlArray]
		public List<User> UserValues { get; set; }

		[XmlIgnore]
		public Dictionary<string, User> Value { get; set; }
	}
}